package com.hyh.spring.dao;

import com.hyh.spring.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @BelongsPackage: com.hyh.spring.dao
 * @ClassName OrderDao
 * @Author: hyhWTX
 * @CreateTime: 2023-06-05  17:34
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@Mapper
public interface OrderDao {
    //1 新建订单
    void create(Order order);

    //2 修改订单状态，从零改为1
    void update(@Param("userId") Long userId, @Param("status") Integer status);
}